home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / c1tutor.exe / FORLOOP.C < prev    next >
C/C++ Source or Header  |  1987-07-04  |  242b  |  11 lines

  1.                                           /* Chapter 3 - Program 3 */
  2. /* This is an example of a for loop */
  3.  
  4. main()
  5. {
  6. int index;
  7.  
  8.    for(index = 0;index < 6;index = index + 1)
  9.      printf("The value of the index is %d\n",index);
  10. }
  11.